package hibernate.entidades;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name="PERSONA")
public class Persona {
	
	private String name; 
	private String surname1;
	private String surname2;
	@Id
	private int id;
	
	public Persona() {
		super();
	}
	
	
	
	public Persona(String name, String surname1, String surname2) {
		super();
		this.name = name;
		this.surname1 = surname1;
		this.surname2 = surname2;
	}



	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getSurname1() {
		return surname1;
	}
	
	public void setSurname1(String surname1) {
		this.surname1 = surname1;
	}
	
	public String getSurname2() {
		return surname2;
	}
	
	public void setSurname2(String surname2) {
		this.surname2 = surname2;
	}
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
}
